<#include "../macro/layout_default.ftl"/>

<#if user_session?exists>
    <@layout_default>
    <div class="row">
        <div class="col-xs-6 col-xs-offset-3">

            <div class="box" style="margin-top:7%">
                <div class="box-body">
                    <div class="error-page">
                        <#if status = 404>
                            <h2 class="headline text-yellow">${status}</h2>
                            <div class="error-content">
                                <h3><i class="fa fa-warning text-yellow"></i> Oops! Page not found.</h3>
                                <hr class="text-yellow" style="border-color:#000"/>
                                <ul class="list-unstyled">
                                    <li>时间：${timestamp?string("yyyy-MM-dd")}</li>
                                    <li>摘要：${error}</li>
                                    <li>详细：${message}</li>
                                </ul>
                            </div>
                        <#else>
                            <h2 class="headline text-red">${status}</h2>
                            <div class="error-content">
                                <h3><i class="fa fa-warning text-red"></i> Oops! Something went wrong.</h3>
                                <hr class="text-red" style="border-color:#000"/>
                                <ul class="list-unstyled">
                                    <li>时间：${timestamp?string("yyyy-MM-dd")}</li>
                                    <li>摘要：${error}</li>
                                    <li>详细：${message}</li>
                                </ul>
                            </div>
                        </#if>
                        <br/>
                        <br/>
                    </div>
                </div>
                <div class="box-footer text-center bg-gray-light">
                    <a class="text-orange" href="javascript:history.back()"><i class="fa fa-mail-reply"></i> 返回</a>
                </div>
            </div>
        </div>
    </div>
    </@layout_default>
<#else>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>AdminLTE 2 | Starter</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="/misc/adminlte-2.3.7/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/misc/adminlte-2.3.7/dist/css/AdminLTE.min.css">
    <link rel="stylesheet" href="/misc/adminlte-2.3.7/dist/css/skins/skin-purple.min.css">
    <link rel="stylesheet" href="/misc/font-awesome-4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="/misc/app/css/base.css">
</head>
<body style="background-color: #ecf0f5;">
<div class="row">
    <div class="col-xs-6 col-xs-offset-3">

        <div class="box" style="margin-top:7%">
            <div class="box-body">
                <div class="error-page">
                    <#if status = 404>
                        <h2 class="headline text-yellow">${status}</h2>
                        <div class="error-content">
                            <h3><i class="fa fa-warning text-yellow"></i> Oops! Page not found.</h3>
                            <hr class="text-yellow" style="border-color:#000"/>
                            <ul class="list-unstyled">
                                <li>时间：${timestamp?string("yyyy-MM-dd")}</li>
                                <li>摘要：${error}</li>
                                <li>详细：${message}</li>
                            </ul>
                        </div>
                    <#else>
                        <h2 class="headline text-red">${status}</h2>
                        <div class="error-content">
                            <h3><i class="fa fa-warning text-red"></i> Oops! Something went wrong.</h3>
                            <hr class="text-red" style="border-color:#000"/>
                            <ul class="list-unstyled">
                                <li>时间：${timestamp?string("yyyy-MM-dd")}</li>
                                <li>摘要：${error}</li>
                                <li>详细：${message}</li>
                            </ul>
                        </div>
                    </#if>
                    <br/>
                    <br/>
                </div>
            </div>
            <div class="box-footer text-center bg-gray-light">
                <a class="text-orange" href="javascript:history.back()"><i class="fa fa-mail-reply"></i> 返回</a>
            </div>
        </div>
    </div>
</div>
</body>
</html>

</#if>